package JVMOOM排查;

import java.util.ArrayList;

/**
 * @author coderFu
 * @create 2022/3/17
 * 模拟OOM，并进行排查
 */
public class CoderDemo {

    static class OOMObject {
        private String content;

        public OOMObject(String content) {
            this.content = content;
        }
    }

    public static void main(String[] args) {
        ArrayList<OOMObject> list = new ArrayList<>();
        int i = 0;
        while (true) {
            list.add(new OOMObject(i++ + ""));
        }
    }
}
